﻿<%@ page title="" language="C#" masterpagefile="~/Page/MasterPage.master" autoeventwireup="true" inherits="Page_Publications_PublicationsList, App_Web_publicationslist.aspx.bc6da422" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../CSS/PageStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="FrameStyle">
        <div class="PageTitleStyle">
            <asp:Image ID="bgpicPublications" runat="server" ImageUrl="~/Images/Publications/bgpicPublicationListTop.png" />
        </div>
        <div id="PublicationsList">
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <asp:GridView ID="gvPublicationList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                    PageSize="15"  EmptyDataText="No Data" CssClass="DataViewStyle" 
                    GridLines="None" onpageindexchanging="gvPublicationList_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderText="Title">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink1" runat="server"  class="DataViewTitleStyle"
                                    NavigateUrl='<%# Eval("PUBLICATION_ID", "PublicationInfo.aspx?publicationID={0}") %>' 
                                    Text='<%# Eval("PUBLICATION_TITLE") %>'></asp:HyperLink>
                            </ItemTemplate>
                            <ControlStyle Width="280px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Poster">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" 
                                    Text='<%# Bind("PUBLICATION_AUTHOR") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("PUBLICATION_AUTHOR") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Posted">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" 
                                    Text='<%# Bind("PUBLICATION_DATE") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("PUBLICATION_DATE") %>'></asp:Label>
                            </ItemTemplate>
                            <ControlStyle Width="100px" />
                            <HeaderStyle CssClass="DataHearderStyle" ForeColor="#018736"/>
                            <ItemStyle CssClass="DataItemStyle" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnPublicationsBack" runat="server" 
                                ImageUrl="~/Images/btnPublicBack.png" onclick="btnPublicationsBack_Click" 
                                CausesValidation="False" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="PostPublication">
            <div class="TopStyle">
                Post Publication
            </div>
            <div class="bgTop">
            </div>
            <div class="bgRepeat">
                <table class="TableStyle">
                    <tr>
                        <td class="TableHeaderStyle">
                            Title:
                        </td>
                        <td colspan="4">
                            <asp:TextBox ID="txtPublicationsPostTitle" runat="server" 
                                CssClass="TextboxStyle" Width="357px"></asp:TextBox>
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvPostEventsTitle" runat="server" ErrorMessage="Required."
                                CssClass="ValidatorStyle" ControlToValidate="txtPublicationsPostTitle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle">
                            Type:
                        </td>
                        <td colspan="2">
                            <asp:DropDownList ID="ddlPublicationsPostType" runat="server" 
                                CssClass="DropDownListStyle" Width="130px">
                                <asp:ListItem>Books</asp:ListItem>
                                <asp:ListItem>Journals</asp:ListItem>
                                <asp:ListItem>Maps</asp:ListItem>
                                <asp:ListItem>Reports</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="TableHeaderStyle">
                            Author:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPublicationsPostAuthor" runat="server" 
                                CssClass="TextboxStyle" Width="100px"></asp:TextBox>
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvPostEventsAuthor" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPublicationsPostAuthor" CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle">
                            PubDate:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPublicationsPostPubDate" runat="server" 
                                CssClass="TextboxStyle" Width="125px"></asp:TextBox>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ControlToValidate="txtPublicationsPostPubDate" 
                                ErrorMessage="Format: XXXX-XX-XX" 
                                ValidationExpression="^\d{4}(\-|\/|\.)\d{1,2}\1\d{1,2}$" 
                                CssClass="ValidatorStyle" Display="Dynamic"></asp:RegularExpressionValidator>
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvPublicationsPostPubDate" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPublicationsPostPubDate" CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                        <td class="TableHeaderStyle">
                            Price:
                        </td>
                        <td>
                            <asp:Label ID="Label1" runat="server" Font-Size="Large" Text="$"></asp:Label>
                            <asp:TextBox ID="txtPublicationsPostPrice" runat="server" 
                                Width="90px" CssClass="TextboxStyle"></asp:TextBox>
                        </td>
                        <td class="validatorPostTable">
                            <asp:RequiredFieldValidator ID="rfvPostEventsPrice" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPublicationsPostPrice" CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="TableHeaderStyle" valign="top">
                            Introduce:
                        </td>
                        <td colspan="4">
                            <asp:TextBox ID="txtPublicationsPostIntroduce" runat="server" Height="100px" 
                                TextMode="MultiLine" CssClass="TextboxStyle" 
                                Width="357px"></asp:TextBox>
                        </td>
                        <td valign="top">
                            <asp:RequiredFieldValidator ID="rfvPostEventsIntroduce" runat="server" ErrorMessage="Required."
                                ControlToValidate="txtPublicationsPostIntroduce" CssClass="ValidatorStyle"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    </table>
            </div>
            <div class="bgBottom">
            </div>
            <div class="ButtonAndBlankStyle">
                <table>
                    <tr>
                        <td width="445px">
                        </td>
                        <td width="85px">
                            <asp:ImageButton ID="btnPublicationsListPostSubmit" runat="server" ImageUrl="~/Images/btnPublicSubmit.png"
                                OnClick="btnPublicationsListPostSubmit_Click1" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
